<%@page import="gruppe7.util.Html" %>
<%@page import="gruppe7.data.User" %>
<%@page import="gruppe7.data.UserException" %>
<%@page import="gruppe7.data.UserController" %>

<% UserController uc = UserController.getInstance(); %>

	<div id ="header"></div>
	<div id="nav-container">

	<div id="top-links">

	<p><a href='index.jsp'>Home</a><span class="splitter"> | </span>
	<a href='login.jsp'>Login</a><span class="splitter"> | </span>
	<a href='contact.jsp'>Contact Us</a><span class="splitter"> | </span>
	<a href='help.jsp'>Help</a><span class="splitter"> | </span>
	<a href='LookUpPrice'>Look up price</a><span class="splitter"> | </span>
	<%
	
	if(uc.isValidSession(request)) {
		User user = uc.getSessionUser(request);
		if(user.getType() == User.Type.TYPE_ADMIN) {
	%>
	<a href="EditStationInfo">Edit station info</a><span class="splitter"> | </span>
	<%}} %>
	
	</p>
	
	<div id="login">
	
	<%

	if (uc.isValidSession(request))
		out.println("<p class='blue'>[ You are logged in as " + uc.getSessionUser(request).getUsername() + " - <a href='Logout'>logout?</a> ]</p>");

	else out.println("<p class='blue'>[ You are not logged in ]</p>");
	%>

	</div>

	</div>

</div>

